<div class="span10 well">
	<?=$system_message;?>
	<?=validation_errors() !=='' ? '<div class="alert alert-error">'.validation_errors().'</div>' : NULL;?>
	<fieldset>
	<legend>Add Employee</legend>
	<form class="form-horizontal" action="<?=site_url('employee/add');?>" method="POST">
		<div class="control-group">
			<label class="control-label" for="inputEmail">Firstname</label>
			<div class="controls">
			<input type="text" name="firstname" class="span12" placeholder="Firstname" value="<?=set_value('firstname');?>" required>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Lastname</label>
			<div class="controls">
			<input type="text" name="lastname" class="span12" placeholder="Lastname" value="<?=set_value('lastname');?>"  required>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Middlename</label>
			<div class="controls">
			<input type="text" name="middlename"class="span12" placeholder="Middlename" value="<?=set_value('middlename');?>"  required>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">gender</label>
			<div class="controls">
			<?=form_dropdown('gender',$gender_opt,set_value('gender'),'class="span12" required');?>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Address</label>
			<div class="controls">
			<textarea name="address" class="span12" placeholder="Address" required><?=set_value('address');?></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Marital Status</label>
			<div class="controls">
			<?=form_dropdown('status',$status_opt,set_value('status'),'class="span12" required');?>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Dependents</label>
			<div class="controls">
			<input type="text" name="dependents" class="span12" value="<?=set_value('dependents');?>"  placeholder="dependents" required>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Department</label>
			<div class="controls">
				<?=form_dropdown('department',$department_opt,set_value('department'),'class="department_picker span12" data-url="'.site_url('outputs/positions').'"data-auth="'.$auth.'"');?>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Position</label>
			<div id="position-dropdown" class="controls">
				
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Monthly Salary</label>
			<div class="controls">
				<div class="input-prepend">
				  <span class="add-on">&#8369;</span>
				  <input class="span8" id="prependedInput" type="text" name="monthly_salary" value="<?=set_value('monthly_salary');?>"  placeholder="monthly salary" required>
				</div>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="inputEmail"></label>
			<div class="controls">
			<input type="submit" name="add_employee" value="Add Employee" class="btn btn-primary">
			<input type="reset"  value="reset" class="btn btn-primary btn-mini btn-danger">
			</div>
		</div>
	</form>
	</fieldset>
</div>